using Eholly.Logger;
using Eholly.Logger.NLog;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Eholly.Framework.Database.Ef.Sqlite.Test
{
    static class Program
    {
        /// <summary>
        ///  The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
#if NET5_0
            Application.SetHighDpiMode(HighDpiMode.SystemAware);
#endif
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            ILoggerManager loggerManager = NLogManager.Instance();
            //WinFormAppHost<MainForm> host = new WinFormAppHost<MainForm>(new HostConfiguration { ConfigDirectory = @"E:\\" }, loggerManager);
            WinFormAppHost<MainForm> host = new WinFormAppHost<MainForm>(loggerManager);

            host
                .Build()
                .Run();
        }
    }
}
